﻿using System;
using System.Runtime.CompilerServices;

namespace Test
{
    class Program
    {

        public static int TestProp {
            get {
                return _testProp;
            }
            set {
                _testProp = value;
                DoTestName();
            }
        }
        private static int _testProp;

        static void Main(string[] args)
        {

            TestProp = 123;

            Console.WriteLine("End");
        }

        static void DoTestName([CallerMemberName] string propName = "")
        {
            Console.WriteLine(propName);
        }
    }
}
